#!/usr/bin/env python
from resource_management import *
import json

# server configurations
config = Script.get_config()

conf_dir = "/etc/sysconfig"
jenkins_user = "root"
user_group = "root"

# jenkins configuration
# documentation  documentation  key
JENKINS_HOME=config['configurations']['jenkins']['JENKINS_HOME']
JENKINS_JAVA_CMD=config['configurations']['jenkins']['JENKINS_JAVA_CMD']
JENKINS_USER=config['configurations']['jenkins']['JENKINS_USER']
JENKINS_JAVA_OPTIONS=config['configurations']['jenkins']['JENKINS_JAVA_OPTIONS']
JENKINS_PORT=config['configurations']['jenkins']['JENKINS_PORT']
JENKINS_LISTEN_ADDRESS=config['configurations']['jenkins']['JENKINS_LISTEN_ADDRESS']
JENKINS_HTTPS_PORT=config['configurations']['jenkins']['JENKINS_HTTPS_PORT']
JENKINS_HTTPS_KEYSTORE=config['configurations']['jenkins']['JENKINS_HTTPS_KEYSTORE']
JENKINS_HTTPS_KEYSTORE_PASSWORD=config['configurations']['jenkins']['JENKINS_HTTPS_KEYSTORE_PASSWORD']
JENKINS_HTTPS_LISTEN_ADDRESS=config['configurations']['jenkins']['JENKINS_HTTPS_LISTEN_ADDRESS']
JENKINS_HTTP2_PORT=config['configurations']['jenkins']['JENKINS_HTTP2_PORT']
JENKINS_HTTP2_LISTEN_ADDRESS=config['configurations']['jenkins']['JENKINS_HTTP2_LISTEN_ADDRESS']
JENKINS_DEBUG_LEVEL=config['configurations']['jenkins']['JENKINS_DEBUG_LEVEL']
JENKINS_ENABLE_ACCESS_LOG=config['configurations']['jenkins']['JENKINS_ENABLE_ACCESS_LOG']
JENKINS_HANDLER_MAX=config['configurations']['jenkins']['JENKINS_HANDLER_MAX']
JENKINS_HANDLER_IDLE=config['configurations']['jenkins']['JENKINS_HANDLER_IDLE']
JENKINS_EXTRA_LIB_FOLDER=config['configurations']['jenkins']['JENKINS_EXTRA_LIB_FOLDER']
JENKINS_ARGS=config['configurations']['jenkins']['JENKINS_ARGS']


